package Book;

import java.security.PrivateKey;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 杨已萱
 * Date: 2023-04-01
 * Time: 12:47
 */
public class BookList {
    private Book[] books = new Book[10];//new 的是书架
    private int usedsize;

    public BookList(){
//        books[0] = ("三国演义",89,"罗贯中","小说");必须要在new book
//        下面是具体的每个book都要初始化一个对象
        books[0] = new Book("三国演义",10,"小说","罗贯中");
        books[1] = new Book("红楼梦",19,"小说","忘记了1");
        books[2] = new Book("西游记",15,"小说","忘记了2");
        books[3] = new Book("水浒传",130,"小说","忘记了3");
        usedsize = 4;
    }
    public int getUsedsize() {
        return usedsize;
    }

    public void setUsedsize(int usedsize) {
        this.usedsize = usedsize;
    }
}
